922 Royalty-Free Audio Tracks for "Wave Sound"

00:00
00:12
Some noise made to sound like the noise generators used in analog drum synthesizers for things like cymbals. Made with helm, 4 comb filters, and a high-pass filter. Helm to generate square wave dissonance, comb filters to add stereo and more "structured noise" quality, and high pass filter to hide the lower overtones.
Author: Aji
00:00
01:20
Small regular waves falling on the gravel lakeshore of the bodensee (lake constance), which is the largest lake in germany. This lake is so large that - as you can hear - it has some 'real waves', which sound very relaxing :). Recorded on an iphone 7, aug. 2017.
Author: Droneaudio
00:00
01:54
5 quantussy cells controlling 2 oscillators, 1 wave folder, 1 filter and 1 drum module (bmc analog drum). Even the pitch of the drum is controlled by one of the quantussy cells. The drum sound to fed to the feedback in on doepfer a-199 spring reverb.
Author: Gis Sweden
00:00
00:35
A simple sine wave beep running through soft saturation and modulation, then being exported deliberately at 8khz and 8bit to simulate the low quality of a phone call. Use this as a standard beep sound coming through a phone speaker. The latter half is a little faster to enable a simulation of hanging up or the call being rejected.
Author: Blondpanda
00:00
00:21
I was playing around trying to create a different sound when i accidentally created this sound which reminded me of a rocket flying by. I thought it might be useful and uploaded it. I kept it a bit longer so you can edit it into a loop or fade it out to make it seem the rocket flies away =). Made with fl studio with the free firebird vst plugin.
Author: Wagna
00:00
00:29
Electric sparkle sound made in harmor in flstudio. Sound is made of harmor generating dark, unison, subbas oscilation with three partials with fundamental frequency of 50hz. Partials got decaying amplitude along frequencies. Bass is put into wave shaper with smooth, negative peak distortion at 50% of positive range. Then falls into parametric equalizer boosting 3khz, forming wide parabolic shape. Bass frequencies are cut off. 44. 1khz, 16bit.
Author: Laffik
00:00
05:01
A short cat conflict (he wants - she not) ;-). . . While birds are singing in the trees and a rooster is crowing then and when. Recorded in the early morning hours at round about 4:00 am. The spatial impression is best if headphones are used. The download-file is a polywav. If you need to split the file (e. G. To make a stereo file), you can use the easy to use"wave agent beta"(free)from sound devices for example. ;-)https://www. Sounddevices. Com/product/wave-agent/. _________________________________________________________used recording gear:zoom f84 x rode nt1 (without "a" = the black ones).
Author: Bluedelta
00:00
03:18
Espoir is the name of this nail varnish street seller in kinshasa. He is knocking 2 small glass bottle varnish to announce he is passing by. Recorded by a ms setup schoeps ccm41+ccm8 on a 633 sound devices recorderoriginal recording in wave 96khz 24bitmay 2018, kinshasa, rdcgps: -4. 319810 / 15. 325272sound ref: @kin180511t12. Same sound on soundcloudhttps://soundcloud. Com/felixblume/nail-varnish.
Author: Felix
00:00
03:19
Seaside ambience recorded at the beach at pea point in blacks harbour, new brunswick, canada. Occasional seagull calls, waves and distant commercial fishing. Recorded august 2019 on a sound devices 633 with a schoeps m/s pair decoded to l/r stereo. Change filename to "ambsea_peapointbeach01_alexlane. Wav" for a ucs compatible name.
Author: Alexlane
00:00
00:56
Free loop for any use :-) have funthese are my diy 80s drums. I used my mouth and created drums using sound design. Subscribe my youtube channel :-)for new sampleshttps://youtu. Be/kkq2trtynu0. I used it for recording and editing:. Instrument -mouthmic - superlux h o8mic preamp - behringer mic100sound card - line6 toneport gxsoftware - cubase le elements 7plugin - melodyne.
Author: Simplesamplesdrums
00:00
21:53
Recorded on a damp night from a beach house at wrightsville beach, north carolina. Audio has been treated for some wind. The whole recording was like an hour long but i couldn't upload that much. Tip: to extend the sound, you can cross-fade this sample pretty much anywhere with itself and the effect is virtually unnoticeable.
Author: Worldsday
00:00
00:03
A sound produced at a construction area close to the leuphana university. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: construction area. Lat: 53. 22824762720743lon: 10. 403194427490234. Date: 2013-12-05, 13:44h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:03
A sound produced at a construction area close to the leuphana university. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: construction area. Lat: 53. 22824762720743lon: 10. 403194427490234. Date: 2013-12-05, 13:39h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:02
A sound produced at a construction area close to the leuphana university. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: construction area. Lat: 53. 22824762720743lon: 10. 403194427490234. Date: 2013-11-21, 14:13h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:02
A sound produced at a supermarket. A muesli packing was shaken. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: supermarket. Lat: 53. 22824762720743lon: 10. 403194427490234. Date: 2013-11-21, 14:12h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:04
A sound produced at a supermarket. A shopping cart is removed. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: supermarket. Lat: 53. 22824762720743lon: 10. 403194427490234. Date: 2013-11-21, 14:52h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:16
The sound of a car horn in the parking deck of leuphana university. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfs. Location: leuphana universität lüneburg, parking deck. Date: 2013-12-10, 16:00hrecorded and edited by: stephan langthis recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:16
The sound of large bike bell inside a parking deck. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfs. Location: leuphana universität lüneburg, parking deck. Date: 2013-12-10, 16:00hrecorded and edited by: christoph weberthis recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:23
Farmer milking a goat by hand. Bucket is half-full of milk. Goats and bucket stands on a wooden platform. Goat-milking sound samples recorded in a small traditional goat-farm in the south of francerecorded with tascam dr-10048000 hz stereo, 16-bit wave pcm uncompressed.
Author: Denis Chapon
00:00
03:16
Free loop for any use :-) have funthese are my diy 80s drums. I used my mouth and created drums using sound design. Subscribe my youtube channel :-)for new sampleshttps://youtu. Be/kkq2trtynu0. I used it for recording and editing:. Instrument -mouthmic - superlux h o8mic preamp - behringer mic100sound card - line6 toneport gxsoftware - cubase le elements 7plugin - melodyne.
Author: Simplesamplesdrums
00:00
03:16
Free loop for any use :-) have funthese are my diy 80s drums. I used my mouth and created drums using sound design. Subscribe my youtube channel :-)for new sampleshttps://youtu. Be/kkq2trtynu0. I used it for recording and editing:. Instrument -mouthmic - superlux h o8mic preamp - behringer mic100sound card - line6 toneport gxsoftware - cubase le elements 7plugin - melodyne.
Author: Simplesamplesdrums
00:00
03:22
Free loop for any use :-) have funthese are my diy 80s drums. I used my mouth and created drums using sound design. Subscribe my youtube channel :-)for new sampleshttps://youtu. Be/kkq2trtynu0. I used it for recording and editing:. Instrument -mouthmic - superlux h o8mic preamp - behringer mic100sound card - line6 toneport gxsoftware - cubase le elements 7plugin - melodyne.
Author: Simplesamplesdrums
00:00
01:17
Cecifoot match. French cecifoot team is training indoor, playing a match. Sound of the special ball with a bell inside. Most of the player are blind, they have a special code to communicate (oui, voi). The sighted players ( the goalkeeper and guides) say french words. Reverberating accousticlens, france, 2020. Recorded with zoom h2, ms positionstero wave, 48khz, 24bits.
Author: Bruno
00:00
03:14
Free loop for any use :-) have funthese are my diy 80s drums. I used my mouth and created drums using sound design. Subscribe my youtube channel :-)for new sampleshttps://youtu. Be/kkq2trtynu0. I used it for recording and editing:. Instrument -mouthmic - superlux h o8mic preamp - behringer mic100sound card - line6 toneport gxsoftware - cubase le elements 7plugin - melodyne.
Author: Simplesamplesdrums
00:00
00:01
This file has two different wavetable sets (from waveedit website), spliced per wave and saved in morphagene format. Once loaded, you can skip waves with the shift button, create a two voice synth, morph between l/r channels (e. G. With xpan), modulate l with r channel, etc. Changing morph, gene and size cv can dramatically ruin the sound.
Author: Cinematiclaboratory
00:00
00:04
I generate 2 tracks. For the former, i have generated a wave whistle sinusoid, log on interpolating 3 seconds. Then i add silences and i put the echo effect. On the second track, i generated an a in 3 seconds, then i added the wah-wah effects, cross fade in and out. Finally, i deleted the sound on the 2 tracks.
Author: Iut Paris
00:00
00:02
Inspired by a discussion on the ambient online forum:https://www. Ambientonline. Org/forum/ambient/sound-design/92341-how-to-synthesize-drum-sounds. Used the subtractor synth from reason. Please refer to the pack description for a full list of the sounds synthesized. Ao_subtractor_snare_2_1. Reason subtractorosc 1 is off (set balance 100% to osc 2 + noise). Osc 2 set to sine wave, oct = 3. Noise decay = 127, noise color = 127, noise level = 127. Filter set to low-pass 12 and completely open (=127). Amp env decay = 44.
Author: Alienxxx
00:00
10:01
Recorded in the night, you will hear a calm situation of falling raindrops without noise of civilisation. The church bell is 200 meter away. The raindrops are falling on the ground of a little deciduous forest and the whole situation is very spatial. The spatial impression is best if headphones are used. Ch1 = flch2 = frch3 = rlch4 = rr. The download-file is a polywav. If you need to split the file (e. G. To make a stereo file), you can use the easy to use"wave agent beta"(free)from sound devices for example. ;-)https://www. Sounddevices. Com/product/wave-agent/. _________________________________________________________used recording gear:zoom f84 x rode nt1 (without "a" = the black ones).
Author: Bluedelta
00:00
01:19
Rain in the evening in a calm suburb area. Taken from a window. Drops fall on a concrete and window-sill too. Window is on a ground floor. Taken by a special app recording to wav 44khz 16 bit mono wav file on a samsung s8500 wave with a special app that can record to looseless. The phone was put directly to the window pointing the mic outside the window. This is my first try to share some sound, hope you like it. I have 2 more and better rain sounds to come. There is no other sound than the rain itself. The files hasent been post-processed.
Author: Bitkar
00:00
02:31
Mexico city - street seller screaming to sell their merchandise till the whistling announcing the police, in mexico city historical center (close to zocalo. "correo mayor" street). Sound recorded by a zoom h4n with its internal xy microphonestereo left-rightrecorded in 2010same sound on soundcloud: https://soundcloud. Com/felixblume/mexico-vendeurs-ambulants. Download 100 sounds from mexico city in wave 48k 24b on bandcamp https://felixblume. Bandcamp. Com/album/disco-pirata-ciudad-de-m-xico.
Author: Felix
00:00
00:10
I made this pad sound by starting with a traditional saw wave and mixing various effects together such as reverb and chorus. The wav file also has pre-defined loop points that can be used in samplers that support the functionality. Note: there is a slight static noise that is present when the sound is played through the freesound player on the website, however, the static is not present when played outside of the freesound audio player. Made with fl studio 11. Enjoy!.
Author: Jdagenet
00:00
02:28
Ff chaos test conditions:cv in from nlc jerkoff. Square wave in from lfo, 1hz. 3 vcos tuned to 130,8hz and one "strange sound". Cv in on vcos are attenuated, about 50%. Gate 1 and cv 1 to vco pan leftgate 2 and cv 2 to vco pan rightgate 3 to vco pan centertrigger to "strange sound" pan center. Sound 1 - cv min and rate minsound 2 - cv max and rate minsound 3 - cv min and rate maxsound 4 - cv max and rate maxsound 5 - cv at 50% and rate at 50%sound 6 - jerkoff to cv in on lfo. Vco 3 gets cv from jerkoff - chaos.
Author: Gis Sweden
00:00
06:22
Wind eard from a plastic greenhouse. The plastic bache is flapping and the metallic armature is grindingfirst drops of rain at 1. 50, then a plane is crossing the sound field, the the rain is more heavy. France, nov2022. Recorded with schoeps ab ortfrecorded on sounddevice mixpre648khz, 24 bits, wave stereo.
Author: Bruno
00:00
22:18
Xw8g+63 porto koufo, toroni, greece22 minutes sound of waves on the gravel recorded in 2017 the port of koufo beach, sithonia, halkidiki, chalkidiki. Having no other recording device, i used my camera, a lumix dmc fz62 that has good microphones and can record decent stereo wav files, without compression.
Author: Eneahead
00:00
00:19
Hey guys! didn't think this will get so much attention but here it is. Https://dl. Dropboxusercontent. Com/u/72666925/the%20hive. Zip. These are my sample packs design by me. Here's a short preview!. Https://www. Youtube. Com/watch?v=dta3ammlmwe. And yes! you're free to use it to your hearts content!.
Author: Staticpony
00:00
00:04
This is the sound of a rolling dray, taken inside of supermarket. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2 with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: supermarket. Lat: 53. 227168618533454lon: 10. 401413440704346. Date: 2013-11-19, 13:44h. Recorded by: julia rehfeldt, wiebke stein and laura medrowedited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:02
A sound produced by shaking a muesli packing. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2 with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: supermarket. Lat: 53. 227168618533454lon: 10. 401413440704346. Date: 2013-11-19, 13:48h. Recorded by: julia rehfeldt, wiebke stein and laura medrowedited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:06
A sound produced at a supermarket. Two mineral water packings were rubbed against each other. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: supermarket. Lat: 53. 22719350668838lon: 10. 401433557271957. Date: 2013-12-05, 13:44h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:04
A sound produced at a supermarket. A rolling dray rolling along in the supermarket. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: supermarket. Lat: 53. 22824762720743lon: 10. 403194427490234. Date: 2013-11-21, 14:45h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:08
A sound produced at a supermarket. Two toilet paper packings hit each other. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfslocation: supermarket. Lat: 53. 22824762720743lon: 10. 403194427490234. Date: 2013-11-21, 14:54h. Recorded and edited by: laura medrow. This recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
00:16
The sound of a scratching and hitting shovel on a parking deck. Wave, 44. 1khz, 24bit, stereorecording device: zoom h2n with xy-capsulelow-cut: yes (80hz)normalized to -1dbfs. Location: leuphana universität lüneburg, parking deck. Date: 2013-12-10, 16:00hrecorded and edited by: christoph weberthis recording was created in the framework of the seminar "soundscape leuphana (ws13/14)".
Author: Soundscape Leuphana
00:00
01:01
This is a smoothly rising shepard tone that i created using adobe audition 3's tone generator. I generated the tone as sine waves in 7 different octaves and mixed the results together. The period of repetition is 10 seconds. (this is a second version in which i removed the phase variance, making the sound monophonic for all practical purposes).
Author: Enjoypa
00:00
05:01
Aquatic recording of the famous fountain by tinguely in fribourg. Recorded underwater with an hydrophone. Recorded with an aquarian h2a xlron a sound devices 633original recording in wave 96khz 24 bit monosound ref: @ch-180625t06. Recorded during the belluard festival in fribourghttp://www. Felixblume. Com/son-seul-wildtrack-belluard/.
Author: Felix
00:00
01:25
Started with me playing with doepfer a-146-2 as gate delay. Went on using it as a wave shaper. Went on and on. . . It's not a very big patch. But the outcome is nice. It's a mix of chaos and random. Yes i'm using jerk off and sloth. Analog modular synth fun.
Author: Gis Sweden
00:00
01:46
Stereo recording of waves on a sandy beach, recorded from the shelter provided by some rocks, with a faint engine hum from a large ship in the far background. Tide was about one hour after turn and coming in. Recorded across an estuary. Average level about -18db. Recorded using h2 zoom with front microphones (90 degree). 6db of amplification in audacity.
Author: Keithpeter
00:00
01:26
Sounds generated by assigning the "wave out" or "line out" signal of the soundcard to a track in fl, and turnin it up. This acts as a digital delay effect with infinite feedback and a very high cycle rate. Basically the noise (similar to pink noise) is produced by the soundcard and the resonance is produced by the low pass filter and the convolution reverb mapping of the waldassen cathedral.
Author: Sim
00:00
04:57
Using a variety of 1980s radios connected via a headphone output to the computer, i tuned in - across the entire bandwidth - of the mw and lw channels. I also captured the static hiss of those bands, 'dead air'. There are small clips of various stations along the way but i was looking for that 'tuning in' sound that was so familiar when radio was the central part of every teenager's life.
Author: Vedas
00:00
09:50
Yes! så nöjd att detta ljud hände, typ! let me take this info in swedish, okay. Buchla style slow krell. En modulerande osc och en som moduleras, men man hör bägge i mixen! ena osc går via en lpg den andra via vca/mix. Till det "skrynkliga" ljudet använder jag en pip slope modulerad av jerkoff och sloth. Ljudkällan är en sinus som går via en lugnt modulerad wave shaper. En envelope follower plus sloth ger en trg till en s/h ibland och då byts tonen. Skrynkelljudet går även till mitt analoga delay. Tonen är även liiite modulerad av en env. Ganska west coast och buchla. . . Google translate :-)buchla style slow krell. A modulating osc and one that is modulated, but you can hear both in the mix! ena osc goes via a lpg the other via vca / mix. To the "creepy" sound i use a pip slope modulated by jerkoff and sloth. The sound source is a sine that goes through a quietly modulated wave shaper. An envelope follower plus sloth gives a trg to an s / h sometimes and then the tone changes. The cry sound also goes to my analogue delay. The tone is also liiite modulated by an env. Pretty west coast and buchla. . .
Author: Gis Sweden
00:00
01:03
Overflight of 2 fighter jets (eurofighter). In quadro (in 5. 1-terms: l-r-sl-sr) you will hear them coming from front-left flying "above the head" to rear-right(roughly spoken). The 4 channels are recorded in irt-cross technique (microphone distance 25cm) so it is a 360° record. Http://irt-cross. Mozello. De_________________________________________________________used recording gear:zoom f84 x rode nt1 (without "a" = the black ones). Ch1 = flch2 = frch3 = rlch4 = rr. The download-file is a polywav. If you need to split the file (e. G. To make a stereo file), you can use the easy to use"wave agent beta"(free)from sound devices for example. Https://www. Sounddevices. Com/product/wave-agent/. Comments about this atmo-record are welcome! ;-).
Author: Bluedelta
00:00
00:01
Start sound of mac ii iix iicx iici se/30. Create by dissessemble rom code and use wave table algorithm write c program write wav file. C program below:. /* mac_ii. C *//* boot beep mac ii *//* 2558/09/06 */. #include. #define knumber_samples 30000#define kdelay_note 300#define kwave_table_value 0x30013f10#define ksample_rate 22257 // hz. Void preparewavetable( unsigned short *wavetable, unsigned int value );void updatewavetable( unsigned short *wavetable, unsigned short chiso );void savesound( char *filename, short *sounddata, unsigned int numberframes, unsigned int samplerate );. Int main () {. // ---- wave tableunsigned short wavetable[256];// ---- sound data, stereoshort sounddata[knumber_samples << 1];// ---- increment array (16/16 bit fix point integer)int arrayincrement[] = {3 << 16, 4 << 16, (3 << 16) + 0x2f2, 6 << 16};// ---- prepare wave tablepreparewavetable( wavetable, kwave_table_value );. // ---- array phase (16/16 bit fix point integer)unsigned int arrayphase[] = {0, 0, 0, 0}; // set all = 0. Unsigned int samplenumber = 0;while( samplenumber < knumber_samples ) {. // ---- calculate sampleunsigned int channelleft = 0;unsigned int channelright = 0;unsigned char notenumber = 0;while ( notenumber < 4 ) {// ---- see if should update phase for note, only do if play noteif( samplenumber >= notenumber*kdelay_note ) {// ---- up date phase beforearrayphase[notenumber] += arrayincrement[notenumber];// ---- not let out of range [0; 255]if( arrayphase[notenumber] > 0xff0000 ) // 0xff0000 == 255 << 16arrayphase[notenumber] -= 0xff0000; // return to begin of wave table}unsigned short mauvat = wavetable[arrayphase[notenumber] >> 16];. // ---- add sound componentsif( notenumber < 2 ) // ---- first 2 notes left channelchannelleft += mauvat;else // ---- last 2 notes right channelchannelright += mauvat;// ---- next notenotenumber++;}// ---- save left and right samplessounddata[samplenumber << 1] = (channelleft << 9) - 0x8000; // use << 1 for 16 bitsounddata[(samplenumber << 1) + 1] = (channelright << 9) - 0x8000; // use << 1 for 16 bitupdatewavetable( wavetable, samplenumber & 0xff );samplenumber++;}// ---- save wav filesavesound( "mac ii. Wav", sounddata, samplenumber << 1, ksample_rate ); // multiply 2 because stereo. Return 1;}. Void preparewavetable( unsigned short *wavetable, unsigned int value ) {. // ---- prepare wave tableunsigned short index = 0;unsigned short wavetablevalue = value & 0xff;while( index < 64 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}. Wavetablevalue = (value >> 8) & 0xff;while( index < 128 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}. Wavetablevalue = (value >> 16) & 0xff;while( index < 192 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}wavetablevalue = (value >> 24) & 0xff;while( index < 256 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}}. Void updatewavetable( unsigned short *wavetable, unsigned short index ) {// ---- get value from wave tableunsigned short value = wavetable[index];// ---- calculate new value for wave tableif( index == 255 ) { // careful at last element of wave tablevalue += wavetable[0];value = (value >> 1);wavetable[0] = value;}else {value += wavetable[index+1];value = (value >> 1);wavetable[index+1] = value;}. }. #pragma mark ---- save wavvoid saveheader( file *filename, unsigned int samplerate );void savesounddatainteger16bit( file *filename, short *sounddata, unsigned int numbersamples );. Void savesound( char *filename, short *sounddata, unsigned int numberframes, unsigned int samplerate ) {// ---- open filefile *file = fopen( filename, "wb" );if( file ) {// ---- "riff"fprintf( file, "riff" );// ---- length sound file - 8unsigned int lengthsoundfile = 32;lengthsoundfile += numberframes << 1; // một không có một mẫu vạt cho kênh trái và phải// ---- save file lengthfputc( (lengthsoundfile) & 0xff, file );fputc( (lengthsoundfile >> 8) & 0xff, file );fputc( (lengthsoundfile >> 16) & 0xff, file );fputc( (lengthsoundfile >> 24) & 0xff, file );// ---- "wave"fprintf( file, "wave" );// ---- save headersaveheader( file, samplerate );// ---- save sound datasavesounddatainteger16bit( file, sounddata, numberframes );// ---- close filefclose( file );}else {printf( "problem save file %s\n", filename );}}. Void saveheader( file *file, unsigned int samplerate ) {// ---- name for header "fmt "fprintf( file, "fmt " );// ---- header lengthfputc( 0x10, file ); // length 16 bytefputc( 0x00, file );fputc( 0x00, file );fputc( 0x00, file );// ---- method for encode, 16 bit pcmfputc( 0x01 & 0xff, file );fputc( (0x00 >> 8) & 0xff, file );// ---- number channels (stereo)fputc( 0x02, file );fputc( 0x00, file );// ---- sample rate (hz)fputc( samplerate & 0xff, file );fputc( (samplerate >> 8) & 0xff, file );fputc( (samplerate >> 16) & 0xff, file );fputc( (samplerate >> 24) & 0xff, file );// ---- number bytes/secondunsigned int numberbytessecond = samplerate << 2; // multiply 4 because short (2 byte) * 2 channelfputc( numberbytessecond & 0xff, file );fputc( (numberbytessecond >> 8) & 0xff, file );fputc( (numberbytessecond >> 16) & 0xff, file );fputc( (numberbytessecond >> 24) & 0xff, file );// ---- byte cho một khung (nên = số lượng mẫu vật * số lượng kênh)// ---- number bytes for sampleunsigned short bytesoneframe = 4; // short (2 byte) * 2 channelunsigned char bitsonesample = 16; // shortfputc( bytesoneframe & 0xff, file );fputc( (bytesoneframe >> 8) & 0xff, file );. Fputc( bitsonesample, file );fputc( 0x00, file );}. Void savesounddatainteger16bit( file *file, short *sounddata, unsigned int numbersamples ) {fprintf( file, "data" );unsigned int datalength = numbersamples << 1; // each sample 2 bytefputc( datalength & 0xff, file );fputc( (datalength >> 8) & 0xff, file );fputc( (datalength >> 16) & 0xff, file );fputc( (datalength >> 24) & 0xff, file );unsigned int sampleindex = 0;while( sampleindex < numbersamples ) {short shortdata = sounddata[sampleindex];fputc( shortdata & 0xff, file );fputc( (shortdata >> 8) & 0xff, file );sampleindex++;}}.
Author: Sieuamthanh
651 - 700 of 922 Next page
/ 19